import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
/* 1.引入elememtUI */
import ElementUI from 'element-ui';
// import ElementUI from './components/element';
import 'element-ui/lib/theme-chalk/index.css';  /* 绝对路径 */
/* 2.使用插件，启用UI框架 */
Vue.use(ElementUI);

/* 3.引入axios并写入vue原型 */
import request from './utils/request';
Vue.prototype.$request = request;

/* 4.路由守卫 */
import './permission.js'

/* 动态提示消息的环境配置：true关闭警告，false发出警告 */
// console.log(process.env.NODE_ENV);
Vue.config.productionTip = process.env.NODE_ENV != 'development';

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
